<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>网上商城</title>
	</head>
	<body>
		<div class="wraper">
			<jsp:include page="/common/header.jsp"></jsp:include>
			<div class="content">
				<jsp:include page="/pages/member/common/leftnav.jsp"></jsp:include>
				<div class="main">
					<div id="confirm">
						<h2>
							等待确认收货的商品
						</h2>
						<c:forEach items="${orderList}" var="order">
							<table border="0" cellpadding="0" cellspacing="0"
								class="table-data">
								<div>
									<span>订单号：${order.id }</span><span>订单日期：${order.orderDate}</span>
								</div>
								<thead>
									<tr>
										<th>
											商品名称
										</th>
										<th>
											金额
										</th>
										<th>
											数量
										</th>
										<th>
											邮费
										</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach items="${order.buyInfos}" var="item"
										varStatus="status">
										<tr>
											<td>
												${item.goodsInfo.goodsName } 贝贝猪迷你音箱
											</td>
											<td>
												${item.sumPrice}
											</td>
											<td>
												${item.num}
											</td>
											<c:if test="${status.count==1}">
												<td rowspan="${fn:length(order.buyInfos)}">
													${order.shipFee}
												</td>
											</c:if>
										</tr>
									</c:forEach>
								</tbody>
							</table>
							<button
								onclick="javascript:location.href='${ctx}/member/member!getGoods?id=${order.id }';return false;"
								class="btnS sYellow_s">
								付款
							</button>
						</c:forEach>
					</div>
				</div>
				<jsp:include page="/common/footer.jsp"></jsp:include>
			</div>
	</body>
</html>
